package business_logic.view;

import java.awt.Color;

public class BonusScoreView extends TextView
{
    public BonusScoreView(Integer timeleft)
    {
        super( null );
        this.updateTimeText(timeleft);
        this.setColor(Color.WHITE);
        this.setSize(20);
        this.setPosition( 450, 420 );
    }
    
    public void updateTime( int timeleft )
    {
        this.updateTimeText(timeleft);
    }
    
    private void updateTimeText ( int timeleft  )
    {
        this.setText( new String ( "Bonus: " + timeleft ) );
    }
    
    @Override
    public boolean isDone()
    {
        return false;
    }

}
